Skip to content

test(e2e): L5 hard-nav instant shell for marketing routes - #177

Open
mkayander wants to merge 2 commits into
mainfrom
cursor/l5-hard-nav-instant-shell-8f0a
Open

test(e2e): L5 hard-nav instant shell for marketing routes#177
mkayander wants to merge 2 commits into
mainfrom
cursor/l5-hard-nav-instant-shell-8f0a

Conversation

@mkayander

@mkayander mkayander commented Aug 29, 2026

Copy link
Copy Markdown
Owner

Summary

L5 follow-up to #176: e2e coverage for hard navigation (MPA reload) instant shell on default-locale marketing routes (/, /privacy, /daily).

Changes

  • e2e/instant-marketing-hard-nav.spec.ts — uses @next/playwright instant() on page.reload() for three marketing routes
  • e2e/helpers/instantNavigationShell.ts — production shell probe that:
    • Detects next dev instant MPA CSR bailout (BAILOUT_TO_CLIENT_SIDE_RENDERING, /_error shell)
    • Requires SSR <h1> with expected copy (not i18n string embedded only in RSC payload)
  • e2e/helpers/playgroundMonacoEditor.ts — hardens clickAppBarHomeLink for Activity/cacheComponents DOM (last visible banner link + DOM click to avoid MUI Typography pointer interception)
  • Docs — L5 hard-nav item checked; remove stale DocumentLocaleSync references

Testing

  • pnpm lint / pnpm test:ci — pass
  • Local e2e (dev): hard-nav suite skips (expected); playground-monaco-nav + instant-marketing-nav pass
  • Hard-nav e2e runs on Vercel preview / production builds only

Notes

  • Session/device hints in Suspense (wider static shell) remains a follow-up — moving getServerSession/headers() broke marketing prerender.
Open in Web Open in Cursor 

Add instant-marketing-hard-nav spec using @next/playwright instant() on MPA
reload. Tests auto-skip under next dev (instant MPA CSR-bails) and run on
production/preview PPR shells. Update L5 docs with follow-ups.
@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dstruct Ready Ready Preview Aug 31, 2026 9:32pm

@mkayander
mkayander marked this pull request as ready for review August 31, 2026 20:21
- Add hasProductionInstantShell helper: detect dev CSR bailout and require
  SSR <h1> instead of i18n string in RSC payload (avoids false positives)
- Fix clickAppBarHomeLink: target last visible banner link and DOM-click to
  avoid MUI Typography pointer interception (fixes CI flake on Pyodide test)
- Deduplicate instant-marketing-nav home navigation via shared helper
- Docs: remove stale DocumentLocaleSync references; cite RootHtmlShell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants